﻿@model Survey.Common.Models.Services.HowTos.ISimpleEntityModel

@this.CreateForm()

@AddControls(
    new Fieldset("w49p mh75 ", Str.Business.Common.Identification)
    {
        new DefinitionList
        {
            new TextOrInput()
                .SetSourceProperty(() => Model.Item.ID)
                .SetReadOnly(!Model.IsAction(Str.Actions.New))
                .SetInputName("NewID")
                .AsDefinitionListItem("ItemID"),

            new TextOrInput().SetSourceProperty(() => Model.Item.NaturalKey),

            new TextOrInput().SetSourceProperty(() => Model.Item.Description),
        }
    },
    new Fieldset("w48p mh75 ", "Settings")
    {
        new DefinitionList(PercentForLabel.p40)
        {
            new TextOrInput().SetSourceProperty(() => Model.Item.RealValue),

            new CheckBox().SetSourceProperty(() => Model.Item.IsVisible),
        }
    })

@RenderControl("Services/HowTos/SimpleEntity/SimpleEntityDetailListView.cshtml")

@this.CloseForm()